<template>
  <div class="detail-goods-info">
    <div class="detail-goods-title">
      {{Goods.title}}
    </div>
    <div class="good-price">
      <span class="new-price">
        {{Goods.price}}
      </span>
      <span class="old-price" v-if="Goods.oldPrice!=null">
        {{Goods.oldPrice}}
      </span>
      <span class="discount-desc" v-if="Goods.oldPrice!=null">
        {{Goods.discountDesc}}
      </span>
    </div>
    <div class="good-columns">
      <div class="good-columns-item" v-for="item in Goods.columns">
        {{item}}
      </div>
    </div>
    <div class="good-services">
      <div class="good-services-item" v-for="item1 in Goods.services">
        <img :src="item1.icon" alt="">
        <span>{{item1.name}}</span>
      </div>
    </div>
  </div>
</template>

<script>
  import {Goods} from "../../../network/detial";

  export default {
    name: "DetailGoodsInfo",
    props:{
      Goods:{
        type:Object,
        default(){
          return {}
        }
      },
    },

  }
</script>

<style scoped>
  .detail-goods-info{
    padding: 0 10px 0 10px;
  }
  .detail-goods-title{

    font-size: 14px;
  }
  .good-price{
    height: 40px;
    line-height: 40px;
  }
  .new-price{
    color: #E91E62;
    font-size: 21px;
  }
  .old-price{
    color:#8E8E8E;
    font-size: 10px;
    text-decoration: line-through;
    margin-left: 3px;
  }
  .discount-desc{
    padding: 0 5px 0 5px;
    margin-left: 3px;
    border-radius: 35% 35%;
    background-color: #E91E62;
    color: #ffffff;
    font-size: 10px;
  }
  .good-columns{
    display: flex;
    padding-top: 10px;
    padding-bottom: 10px;
    border-bottom: #E0E0E0 2px solid;

  }
  .good-columns-item{
    flex: 1;
    color:#8E8E8E;
    font-size: 10px;
    text-align: center;
  }
  .good-services{
    height: 50px;
    line-height: 30px ;

  }
  .good-services-item{
    font-size: 13px;
    width: 40%;
    float: left;
    margin-left: 10%;



  }
  .good-services-item img{
    width: 10px;
    height: 10px;
  }


</style>